package com.jhgsys.internal.accident.service;

import com.jhgsys.internal.accident.entity.AccidentReportReasonFile;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *  Service接口
 *
 * @author zhangwei
 * @date 2024-08-26 09:36:00
 */
public interface IAccidentReportReasonFileService extends IService<AccidentReportReasonFile> {
    /**
     * 查询（分页）
     * @author zhangwei
     * @date 2024-08-26 09:36:00
     * @param request QueryRequest
     * @param accidentReportReasonFile accidentReportReasonFile
     * @return IPage<AccidentReportReasonFile>
     */
    IPage<AccidentReportReasonFile> findAccidentReportReasonFilePage(QueryRequest request, AccidentReportReasonFile accidentReportReasonFile);

    /**
     * 查询（所有）
     * @author zhangwei
     * @date 2024-08-26 09:36:00
     * @param accidentReportReasonFile accidentReportReasonFile
     * @return List<AccidentReportReasonFile>
     */
    List<AccidentReportReasonFile> findAccidentReportReasonFileList(AccidentReportReasonFile accidentReportReasonFile);

    /**
    * 根据ID查询
    * @author zhangwei
    * @date 2024-08-26 09:36:00
    * @param id
    * @return AccidentReportReasonFile
    */
    AccidentReportReasonFile findAccidentReportReasonFileById(String id);

    /**
     * 新增
     * @author zhangwei
     * @date 2024-08-26 09:36:00
     * @param accidentReportReasonFile accidentReportReasonFile
     */
    void createAccidentReportReasonFile(AccidentReportReasonFile accidentReportReasonFile);

    /**
     * 修改
     * @author zhangwei
     * @date 2024-08-26 09:36:00
     * @param accidentReportReasonFile accidentReportReasonFile
     */
    void updateAccidentReportReasonFile(AccidentReportReasonFile accidentReportReasonFile);

    /**
     * 逻辑删除
     * @author zhangwei
     * @date 2024-08-26 09:36:00
     * @param accidentReportReasonFile accidentReportReasonFile
     * @param accidentReportReasonFileIds accidentReportReasonFileIds
     */
    void deleteAccidentReportReasonFile(AccidentReportReasonFile accidentReportReasonFile,String accidentReportReasonFileIds);

    /**
    * 物理删除
    * @author zhangwei
    * @date 2024-08-26 09:36:00
    * @param accidentReportReasonFileIds accidentReportReasonFileIds
    */
    void physicallyDeleteAccidentReportReasonFile(String accidentReportReasonFileIds);

    /**
     * 根据事故报告原因id删除
     * @author admin
     * @date 2024-08-27 10:56:15
     * @param reportIds
     */
    void deleteByReportReasonIds(String reportReasonIds,String fileType);
}
